<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateEcnImpactOtherTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('ecn_impact_other', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('ecn_id');
			$table->text('other_description')->nullable();
			$table->text('other_disposition')->nullable();
			$table->float('disposition_cost', 10, 0)->nullable();
			$table->timestamp('insert_time')->nullable()->default(DB::raw('CURRENT_TIMESTAMP'));
			$table->integer('valid')->default(1);
			$table->timestamps();
			$table->softDeletes();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('ecn_impact_other');
	}

}
